package com.swt.testdemo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.swt.testdemo.config.ResponseBean;
import com.swt.testdemo.config.ResponseMessage;
import com.swt.testdemo.entity.SysOntologyEntity;
import com.swt.testdemo.form.EditEntityForm;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author BleethNie
 * @version 1.0
 * @date 2020/11/13 10:15
 **/
public interface SysOntologyService extends IService<SysOntologyEntity> {
    ResponseBean getEntityList();

    ResponseBean getEntityInfo(Integer entityId);

    ResponseBean createEntity(String ontologyName);


    ResponseBean uploadEntityPic(Integer entityId, MultipartFile file) throws IOException;

    ResponseMessage deleteEntity(Integer entityId);

    ResponseMessage editEntity(EditEntityForm form);
}
